import Vue from 'vue'
import Router from 'vue-router'
import router from './index'
import {constantRouterMap} from './index'
export function resetRouter() {
    const newRouter = new Router({
        routes: constantRouterMap
    });
    console.log(constantRouterMap);
    router.matcher = newRouter.matcher;
}